package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.*;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_CompoundPrimary(columns = {"agree_key", "agree_version"})
@_DDL_Table(name = "agree_config", simpleName = "", engine = MysqlDriver.InnoDB, comment = "协议配置")
public class _DDL_AgreeConfig {

    @_DDL_Column(name = "agree_key", type = SqlType.VARCHAR, size = 30, nullable = false, comment = "协议主键")
    private String key;

    @_DDL_Column(name = "agree_orderby", type = SqlType.INT, nullable = false, comment = "协议排序")
    private Integer orderby;

    @_DDL_Index(name = "agree_version")
    @_DDL_Column(name = "agree_version", type = SqlType.INT, nullable = false, comment = "协议版本")
    private Integer version;

    @_DDL_Column(name = "agree_ttitle", type = SqlType.VARCHAR, size = 50, nullable = false, comment = "协议标题")
    private String ttitle;

    @_DDL_Column(name = "agree_content", type = SqlType.LONGTEXT, nullable = false, comment = "协议内容")
    private String content;

    @_DDL_Column(name = "is_update_consent", type = SqlType.BOOLEAN, nullable = false, comment = "是否更新同意")
    private Boolean isUpdateConsent;

    @_DDL_Column(name = "create_time", type = SqlType.DATETIME, nullable = false, comment = "创建时间")
    private java.time.LocalDateTime createTime;

    @_DDL_Column(name = "update_time", type = SqlType.DATETIME, comment = "更新时间")
    private java.time.LocalDateTime updateTime;

}
